"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const awaitWrap = (promise, errMsg) => {
    return promise
        .then(data => [null, data])
        .catch(err => {
        return [err, null];
    });
};
exports.default = awaitWrap;
